﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Wix.Aura.Common;
using Wix.Aura.UnitTests.Tools;

namespace Wix.Aura.UnitTests.Common {
	[TestFixture]
	public class IconSerialization {
		[SetUp]
		public void SetUp(){
			icon = new Icon("icon");
		}

		Icon icon;

		[Test]
		public void EmptyIcon() {
			XmlAssert.AreEqual(@"<Icon Id=""icon"" />", icon);
		}

		[Test]
		public void AllAttributes() {
			icon.SourceFile = "SourceFile";
			XmlAssert.AreEqual(@"<Icon SourceFile=""SourceFile"" Id=""icon"" />", icon);
		}
	}
}
